<?php


declare (strict_types=1);

namespace app\api\validate\passport;

use think\Validate;

/**
 * 验证类：发送短信验证码
 * Class Login
 * @package app\api\validate\passport
 */
class Login extends Validate
{
    /**
     * 验证规则
     * @var array
     */
    protected $rule = [
        'full_name' => ['require'],
        'id_card' => ['idCard'],
    ];

    /**
     * 验证提示
     * @var string[]
     */
    protected $message = [
        'full_name.require' => '学员姓名不能为空',
//        'id_card.require' => '证件号码不能为空',
        'id_card.idCard' => '身份证号格式不正确',
    ];
}
